package com.lagou.SqlSessionFactory;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

/**
 * <pre>
 * 描述：TODO
 * </pre>
 *
 * @类名：com.lagou.SqlSessionFactory.SqlSession
 * @作者 mengwei
 * 创建日期：2020/9/28 10:35
 */
public interface SqlSession {
//    查询一个
    public <T> T selectOne(String mapperId, Object ...param) throws Exception;
//    查询所有
    public <T> List<T> selectList(String mapperId,Object ...param) throws Exception;

//    批量修改：增删改
    public int modify(String mapperId, Object[] args) throws Exception;
//    public int insert(String mapperId, Object[] args) throws Exception;



    public <T> T getMapper(Class<?> clazz);
}
